package com.wjj.entity;

import java.util.Date;
import java.util.List;

/*
 * 发薪
 */
public class Pay {
	private Integer id;
	private String code;//流水单编码
	private String name;//流水单名称
	private Groups company;//公司id
	private  Groups business;//事业部 id
	private  Groups dept;//部门id
	private Double account;//发放总金额
	private String bills;//文件
	private Date createtime;//创建时间
	//发薪人
	private List<User> users;
	//编外字段
	private Integer companyId;
	private Integer businessId;
	private Integer deptId;
	
	
	
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public Integer getBusinessId() {
		return businessId;
	}
	public void setBusinessId(Integer businessId) {
		this.businessId = businessId;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public List<User> getUsers() {
		return users;
	}
	public void setUsers(List<User> users) {
		this.users = users;
	}
	//创建get set 方法
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Groups getCompany() {
		return company;
	}
	public void setCompany(Groups company) {
		this.company = company;
	}
	public Groups getBusiness() {
		return business;
	}
	public void setBusiness(Groups business) {
		this.business = business;
	}
	public Groups getDept() {
		return dept;
	}
	public void setDept(Groups dept) {
		this.dept = dept;
	}
	public Double getAccount() {
		return account;
	}
	public void setAccount(Double account) {
		this.account = account;
	}
	public String getBills() {
		return bills;
	}
	public void setBills(String bills) {
		this.bills = bills;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Pay(Integer id, String code, String name, Groups company, Groups business, Groups dept, Double account,
			String bills, Date createtime) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.company = company;
		this.business = business;
		this.dept = dept;
		this.account = account;
		this.bills = bills;
		this.createtime = createtime;
	}
	
	public Pay(Integer id, String code, String name, Groups company, Groups business, Groups dept, Double account,
			String bills, Date createtime, List<User> users) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.company = company;
		this.business = business;
		this.dept = dept;
		this.account = account;
		this.bills = bills;
		this.createtime = createtime;
		this.users = users;
	}
	public Pay() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Pay [id=" + id + ", code=" + code + ", name=" + name + ", company=" + company + ", business=" + business
				+ ", dept=" + dept + ", account=" + account + ", bills=" + bills + ", createtime=" + createtime
				+ ", users=" + users + "]";
	}


}
